/*
 *  Created at 2011-12-17 01:40 GMT-03:00
 *  Author: Victor Williams Stafusa da Silva
 *  JSmartUnit
 */
package org.jsmartunit.statement;

import org.junit.runners.model.Statement;

/**
 * @author Victor Williams Stafusa da Silva
 */
public final class ThrowsException {

    private ThrowsException() {}

    public static Statement throwing(final Throwable toThrow) {
        return new Statement() {
            @Override
            public void evaluate() throws Throwable {
                throw toThrow;
            }
        };
    }
}
